package com.demo.webapp.search.bean;

import java.io.IOException;

import com.demo.search.service.SearchTaskService;

/**
 * 索引任务
 * @author ryuu.kk
 */
public abstract class IndexJob {
	
	/**
	 * 索引任务服务
	 */
	private SearchTaskService searchTaskService;
	
	public void execute() {
		try {
			// 处理等待状态中的索引任务
			searchTaskService.process();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
